package com.ygswglxt.leave.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;

@Data
@TableName("leave_record")
public class LeaveRecord {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;
    @TableField(exist = false)
    private String userName; // 员工名称（联表查询字段，不在数据库表中）
    private String type; // ANNUAL, SICK, PERSONAL, ADJUSTMENT
    private Date startDate;
    private Date endDate;
    private Integer days;
    private String reason;
    private String status; // PENDING, APPROVED, REJECTED
    private Long approverId;
    private Date createTime;
}

